Mac os thrift旧版本安装爬坑指南、Mac thrift安装指南、thrift安装学习、thrift安装爬坑

吐槽、建议、解惑入口网址

Mac os thrift旧版本安装爬坑指南

喜欢使用brew来进行一键安装:

homebrew官网
homebrew-core github网址

  • 对于安装最新新版本thrift,我们可以直接是用brew install thrift

  • 使用brew search thrift;查看不同版本的thrift。然后brew install thrift@0.9.0

  • 使用复杂brew方案进行安装。思路同时通过找到旧版本的thrift.rb。

    1. 将homebrew-core的git文件下载到本地。
    2. 通过查看Formula/thrift.rb的history。

    git log 234b34ab1418bd42b14e73dbeea179f40ef1bec2 -- Formula/thrift.rb

    1. 找到旧版本的commit。

      1
      2
      3
      4
      5
        commit 9d524e4850651cfedd64bc0740f1379b533f607d
      Author: BrewTestBot <brew-test-bot@googlegroups.com>
      Date: Thu Dec 29 18:54:26 2016 +0000

      thrift: update 0.9.3 bottle.
    2. 然后将链接

      1
      2
      3
      https://github.com/Homebrew/homebrew-core/blob/{commit_id}/Formula/thrift.rb
      即:
      https://github.com/Homebrew/homebrew-core/blob/9d524e4850651cfedd64bc0740f1379b533f607d/Formula/thrift.rb
    3. 点击页面上按钮“Raw”,获取文件内容

      1
      2
      3
      https://raw.githubusercontent.com/Homebrew/homebrew-core/{commit_id}/Formula/thrift.rb
      即:
      https://raw.githubusercontent.com/Homebrew/homebrew-core/9d524e4850651cfedd64bc0740f1379b533f607d/Formula/thrift.rb
    4. 在命令行上 brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/9d524e4850651cfedd64bc0740f1379b533f607d/Formula/thrift.rb
      即可。
      安装成功。

    参考网址:
    Install older removed brew formula version

源码安装

thrift快速指南


开始爬坑

推荐阅读:
编译器的工作过程

不曾拥有,所以努力。(坚持原创技术分享,您的支持将鼓励我继续创作!)